<table class="datas">
  <thead>
    <tr><th colspan="2"><?php echo $type ?></th></tr>
  </thead>
  <tbody>
  <?php foreach ($groupage as $valeur => $nombre): ?>
    <tr><td><?php echo $valeur; ?></td><td><?php echo $nombre ?></td></tr>
  <?php endforeach; ?>
  </tbody>
</table>